import request from '@/utils/request'

// 查询拼团列表列表
export function listGroupproduct(query) {
  return request({
    url: '/activity/groupproduct/list',
    method: 'get',
    params: query
  })
}

// 查询拼团列表详细
export function getGroupproduct(id) {
  return request({
    url: '/activity/groupproduct/' + id,
    method: 'get'
  })
}

// 新增拼团列表
export function addGroupproduct(data) {
  return request({
    url: '/activity/groupproduct',
    method: 'post',
    data: data
  })
}

// 修改拼团列表
export function updateGroupproduct(data) {
  return request({
    url: '/activity/groupproduct',
    method: 'put',
    data: data
  })
}

// 删除拼团列表
export function delGroupproduct(id) {
  return request({
    url: '/activity/groupproduct/' + id,
    method: 'delete'
  })
}
